package com.lazy.book.pojo.system.pojo.vo;

import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * SysOperLog返回vo
 * </p>
 *
 * @author sz-admin
 * @since 2025-07-02
 */
@Data
@Schema(description = "SysOperLog返回vo")
public class SysOperLogVO {

    @ExcelIgnore
    @Schema(description =  "日志主键")
    private Long operId;

    @ExcelProperty(value = "模块标题")
    @Schema(description =  "模块标题")
    private String title;

    @ExcelProperty(value = "业务类型（0其它 1新增 2修改 3删除）")
    @Schema(description =  "业务类型（0其它 1新增 2修改 3删除）")
    private Integer businessType;

    @ExcelProperty(value = "描述")
    @Schema(description =  "描述")
    private String disk;

    @ExcelProperty(value = "方法名称")
    @Schema(description =  "方法名称")
    private String method;

    @ExcelProperty(value = "请求方式")
    @Schema(description =  "请求方式")
    private String requestMethod;

    @ExcelProperty(value = "操作类别（0其它 1后台用户 2手机端用户）")
    @Schema(description =  "操作类别（0其它 1后台用户 2手机端用户）")
    private Integer operatorType;

    @ExcelProperty(value = "操作人员")
    @Schema(description =  "操作人员")
    private String operName;

    @ExcelProperty(value = "请求URL")
    @Schema(description =  "请求URL")
    private String operUrl;

    @ExcelProperty(value = "主机地址")
    @Schema(description =  "主机地址")
    private String operIp;

    @ExcelProperty(value = "操作地点")
    @Schema(description =  "操作地点")
    private String operLocation;

    @ExcelProperty(value = "请求参数")
    @Schema(description =  "请求参数")
    private String operParam;

    @ExcelProperty(value = "返回参数")
    @Schema(description =  "返回参数")
    private String jsonResult;

    @ExcelProperty(value = "操作状态（0正常 1异常）")
    @Schema(description =  "操作状态（0正常 1异常）")
    private Integer status;

    @ExcelProperty(value = "错误消息")
    @Schema(description =  "错误消息")
    private String errorMsg;

    @ExcelProperty(value = "操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description =  "操作时间")
    private LocalDateTime operTime;

    @ExcelProperty(value = "tid")
    @Schema(description =  "tid")
    private String tid;

}